package pres.man.interview.simple;

import com.sun.org.apache.xalan.internal.xsltc.dom.StripWhitespaceFilter;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.UUID;

/**
 * @Author MAN
 * @Date 2021-01-18-15:26
 */
public class OutOfMemory {
    public static void main(String[] args) {
        System.out.println(Runtime.getRuntime().maxMemory() / 1024 / 1024);
        System.out.println(Runtime.getRuntime().freeMemory() / 1024 / 1024);
        LinkedList<String> result = new LinkedList<>();
        while (true){
            result.add(UUID.randomUUID().toString());
        }
    }
}
